from django.db import models
from danwei.models import Danwei
from job.models import Job
# Create your models here.


class Level(models.Model):
    id = models.AutoField(primary_key=True)
    name = models.CharField(max_length=255, blank=True, null=True)
    basic_salary = models.IntegerField(blank=True, null=True)
    job_id=models.ForeignKey(
        Job,
        on_delete=models.CASCADE,
        related_name="level",
        blank=True,
        null=True,
    )